#ifndef AREAMEASURE_H
#define AREAMEASURE_H

#include <QtGui/QWidget>
#include "ui_areameasure.h"

namespace EarthView
{
	namespace World
	{
		namespace Spatial3D
		{
			namespace Controls
			{
				class CGlobeControl;
			}
			namespace Analysis
			{
				class CAnalysis3DMeasureArea;
			}
		}
	}
}

class CMeasureListener;
class AreaMeasure : public QWidget
{
	Q_OBJECT

public:

	AreaMeasure(QWidget *parent = 0, Qt::WFlags flags = 0);

	~AreaMeasure();

	void setText(const QString& clamTxt, const QString& projTxt);

	void setGlobeControl(EarthView::World::Spatial3D::Controls::CGlobeControl* ref_globeControl);

	virtual void closeEvent(QCloseEvent *);

	private slots:

		void slotClear();

		void slotExit();

		void slotAreaUnit();

private:

	Ui::areameasureClass ui;

	EarthView::World::Spatial3D::Analysis::CAnalysis3DMeasureArea* mpAreaTool;

	EarthView::World::Spatial3D::Controls::CGlobeControl* mpGlobeControl;

	CMeasureListener* mpMeasureListener;
};
#endif
